﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ShoppingCartForm.aspx.cs" Inherits="RBOSS.WebUI.ShoppingCartForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        .cartlist {
            clear:both;
        }
        .cartlist table{
            width:560px;
            cellspacing:10px;
            cellpadding:5px;
            background:#fff;
            
        }
        .carlist table th{
            font-weight:normal!important;
            border-bottom:1px solid #bebebe;
            font-size:14px;
        }
        .carlist table tr{
            background:#f0f4f5;
        }
        .cartlist table td{
            border-top:1px solid #f0f4f5;
            text-align:center;
            font-size:14px;
            
        }
    </style>
    <div class="center_title_bar" style="margin-bottom:10px;">Cart Details</div>
    
    <div class="cartlist" >
        <asp:GridView runat="server" AutoGenerateColumns="False" DataKeyNames="ProductId" ID="gvProduct" GridLines="None" EmptyDataText="You don't have item in the cart">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <img src='<%# DataBinder.Eval(Container.DataItem, "Image")%>' width="105px"/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quantity" HeaderStyle-Font-Bold="false" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Size="12px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Qunatity") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Unit Price"  HeaderStyle-Font-Bold="false" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Size="12px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Price") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Total"  HeaderStyle-Font-Bold="false" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Size="12px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Total") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl = "~/Images/delete.png" />
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" />
        </asp:GridView>
    </div>
   
</asp:Content>
